<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class User | sweetphp</title>

	<script type="text/javascript" src="resources/combined.js?2802521858"></script>
	<script type="text/javascript" src="elementlist.js?3776638906"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-SweetPHP.html">SweetPHP<span></span></a>
						<ul>
				<li><a href="package-SweetPHP.System.html">System<span></span></a>
						<ul>
				<li><a href="package-SweetPHP.System.Core.html">Core</a>
						</li>
				<li><a href="package-SweetPHP.System.Test.html">Test</a>
						</li>
				<li><a href="package-SweetPHP.System.Utility.html">Utility</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-User.html">User</a></li>
				<li><a href="class-Wellcome.html">Wellcome</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-SweetPHP.html" title="Summary of SweetPHP"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class User</h1>



	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-Post.html"><span>Post</span></a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>User</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-SweetPHP.html">SweetPHP</a><br />

				<b>Author:</b>
				sweetphp
<p>Exemplo de model, objeto</p>

<p><br />
</p>
<br />
				<b>Table("User")</b>
				<br />
		<b>Located at</b> <a href="source-class-User.html#12-67" title="Go to source code">libs/app/models/User.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-User.html#24-29" title="Go to source code">__construct</a>( <span>mixed <var>$id</var> = <span class="php-num">0</span></span>, <span>mixed <var>$login</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>mixed <var>$password</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>Post - __construct</b></p>

<p>IOPost, esta classe a se extender pega os posts ($_POST) diretamente e passa
para o construtor do objeto instanciado, para seu uso e necessario apos
instanciar a classe chamar a função getPost(), ele verificara todas as
variaveis do objeto e as passara para este objeto. <b>Importante:</b> Sempre
colocar dentro do construtor do objeto extendido o parent::__construct() para
que a classe funcione corretamente</p>

<p></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>Post - __construct</b></p>

<p>IOPost, esta classe a se extender pega os posts ($_POST) diretamente e passa
para o construtor do objeto instanciado, para seu uso e necessario apos
instanciar a classe chamar a função getPost(), ele verificara todas as
variaveis do objeto e as passara para este objeto. <b>Importante:</b> Sempre
colocar dentro do construtor do objeto extendido o parent::__construct() para
que a classe funcione corretamente</p>

<p></p>






				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						$user = new User(); $user-&gt;getPost();
<p>(Neste momento todas as variaveis enviadas via data post serao pegas e
preenchidas dentro do objeto user, sem a necessidade de usar o $_POST para pegar
cada variavel do escopo atual)</p>
<br />
				</div>

				<h4>Overrides</h4>
				<div class="list"><code><a href="class-Post.html#___construct">Post::__construct()</a></code></div>

		</div>
		</div></td>
	</tr>
	<tr data-order="getId" id="_getId">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getId">#</a>
		<code><a href="source-class-User.html#31-33" title="Go to source code">getId</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="getLogin" id="_getLogin">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getLogin">#</a>
		<code><a href="source-class-User.html#35-37" title="Go to source code">getLogin</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="getPassword" id="_getPassword">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getPassword">#</a>
		<code><a href="source-class-User.html#39-41" title="Go to source code">getPassword</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setId" id="_setId">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setId">#</a>
		<code><a href="source-class-User.html#43-45" title="Go to source code">setId</a>( <span>mixed <var>$var</var> = <span class="php-num">0</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setLogin" id="_setLogin">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setLogin">#</a>
		<code><a href="source-class-User.html#47-49" title="Go to source code">setLogin</a>( <span>mixed <var>$var</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setPassword" id="_setPassword">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setPassword">#</a>
		<code><a href="source-class-User.html#51-53" title="Go to source code">setPassword</a>( <span>mixed <var>$var</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="createtable" id="_createtable">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_createtable">#</a>
		<code><a href="source-class-User.html#55-65" title="Go to source code">createtable</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-Post.html#methods">Post</a></caption>
	<tr>
		<td><code>
			<a href="class-Post.html#_call_private_method">call_private_method()</a>, 
			<a href="class-Post.html#_getPost">getPost()</a>, 
			<a href="class-Post.html#_inputPost">inputPost()</a>
		</code></td>
	</tr>
	</table>











	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="id" id="$id">
		<td class="attributes"><code>
			public  
			(int)
		</code></td>

		<td class="name">
				<a href="source-class-User.html#15-16" title="Go to source code"><var>$id</var></a>
		</td>
		<td class="value"><code><span class="php-quote">&quot;&quot;</span></code></td>
		<td class="description"><div>
			<a href="#$id" class="anchor">#</a>

			<div class="description short">
				
<p>id</p>

			</div>

			<div class="description detailed hidden">
				
<p>id</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="login" id="$login">
		<td class="attributes"><code>
			public  
			(string)
		</code></td>

		<td class="name">
				<a href="source-class-User.html#18-19" title="Go to source code"><var>$login</var></a>
		</td>
		<td class="value"><code><span class="php-quote">&quot;&quot;</span></code></td>
		<td class="description"><div>
			<a href="#$login" class="anchor">#</a>

			<div class="description short">
				
<p>login</p>

			</div>

			<div class="description detailed hidden">
				
<p>login</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="password" id="$password">
		<td class="attributes"><code>
			public  
			(string)
		</code></td>

		<td class="name">
				<a href="source-class-User.html#21-22" title="Go to source code"><var>$password</var></a>
		</td>
		<td class="value"><code><span class="php-quote">&quot;&quot;</span></code></td>
		<td class="description"><div>
			<a href="#$password" class="anchor">#</a>

			<div class="description short">
				
<p>password</p>

			</div>

			<div class="description detailed hidden">
				
<p>password</p>


			</div>
		</div></td>
	</tr>
	</table>






</div>

	<div id="footer">
		sweetphp API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
